import { parseTokens, nestTokens } from "./src/parseTokens";
import { render } from './src/renderTemplate';

const Bryan_Template = {
    render: function(templateStr, data) {

        var tokens = parseTokens(templateStr);
        var nests = nestTokens(tokens)
        var resultStr = render(nests, data);

        return resultStr;
    }

};

window.Bryan_Template = Bryan_Template;